<%@ page isELIgnored="false" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>书籍列表</title>
</head>
<body>
欢迎${LoginUser.realName}，您已成功登录！

<table border="1">
    <tr>
        <th>id</th>
        <th>书名</th>
        <th>类型</th>
        <th>作者</th>
    </tr>
    <% System.out.println(request.getAttribute("books"));%>
    <c:forEach items="${books}" var="book">
        <tr>
            <td>${book.bookId}</td>
            <td>${book.bookName}</td>
            <td>${book.bookType}</td>
            <td>${book.bookWriter}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
